home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Demos
/
Bowers Development
/
AppMaker 2.0b5
/
Examples
/
Java
/
Everything
/
View.java
< prev
Wrap
Text File
|
1996-06-12
|
2KB
|
77 lines
import java.awt.Button;
import java.awt.Checkbox;
import java.awt.Choice;
import java.awt.TextArea;
import java.awt.List;
import java.awt.Label;
import java.awt.TextField;
import java.awt.Event;
import RectPanel;
public class View extends RectPanel
{
Button mButtonButton;
Checkbox mCheckboxCheck;
Choice mPopupChoice;
TextArea mTextAreaField;
List mStylesList;
Label mLabelLabel;
TextField mTextFieldField;
public View()
{
super();
// BindingLayout b = new BindingLayout();
// BindingLayout is a LayoutManager
// that implements "binding" of components
// so that they resize when they container is resized.
// BindingLayout was written by a Roaster engineer
// and is not publicly available.
// If BindingLayout becomes publicly available
// then AppMaker will generate code for it.
// setLayout(b);
setLayout (null);
resize(325, 214);
add( mButtonButton = new Button("Button") );
mButtonButton.reshape( 20, 16, 72, 20);
add( mCheckboxCheck = new Checkbox("Checkbox") );
mCheckboxCheck.reshape( 116, 20, 84, 16);
add( mPopupChoice = new Choice() );
mPopupChoice.reshape( 216, 16, 100, 20);
mPopupChoice.addItem( "Choice");
mPopupChoice.addItem( "-");
mPopupChoice.addItem( "fred");
mPopupChoice.addItem( "george");
mPopupChoice.addItem( "harry");
add (mTextAreaField = new TextArea ("TextArea"));
mTextAreaField.reshape (20, 60, 122, 83);
add( mStylesList = new List() );
mStylesList.reshape( 168, 60, 120, 84);
mStylesList.addItem( "one");
mStylesList.addItem( "two");
mStylesList.addItem( "three");
mStylesList.addItem( "infinity");
add( mLabelLabel = new Label("Label:") );
mLabelLabel.reshape( 80, 168, 42, 17);
add (mTextFieldField = new TextField ("TextField"));
mTextFieldField.reshape (120, 168, 100, 16);
}
public boolean action(Event e)
{
return false;
}
}